import { Injectable } from '@angular/core';
import { of, Observable } from 'rxjs';
import { ProgressInfo, ProgressSectionBarData } from '../data/progress-section';

@Injectable()
export class ProgressBarService extends ProgressSectionBarData {
  private progressInfoData: ProgressInfo[] = [
    {
      title: 'Today’s Profit',
      value: 32001,
      activeProgress: 70,
      description: 'Better than last week (70%)'
    },
    {
      title: 'New Orders',
      value: 6378,
      activeProgress: 30,
      description: 'Better than last week (30%)'
    },
    {
      title: 'New Comments',
      value: 200,
      activeProgress: 55,
      description: 'Better than last week (55%)'
    }
  ];

  getProgressInfoData(): Observable<ProgressInfo[]> {
    return of(this.progressInfoData);
  }
}
